package main

import (
	"net/http"
	"time"

	"github.com/gorilla/mux"
)

func ImageHander(w http.ResponseWriter, r *http.Request) {
	if r.Method == "GET" {

	} else if r.Method == "POST" {

	} else if r.Method == "DELETE" {

	}
}

func main() {
	load_ini()

	r := mux.NewRouter()
	r.HandleFunc("/image/", ImageHander)

	srv := &http.Server{
		Handler:      r,
		Addr:         config.listen,
		WriteTimeout: 15 * time.Second,
		ReadTimeout:  15 * time.Second,
	}

	srv.ListenAndServe()
}
